package com.yk.pool;


import java.util.concurrent.ThreadPoolExecutor;

/**
 * 命令执行接口
 * Created by Administrator on 2016/4/5.
 */
public interface CommonInterface {
    /**
     * 命令执行
     */
    public void execute()throws Exception;

    /**
     * handler处理机制
     * @throws Exception
     */
    public void handlerExecute(Runnable r, ThreadPoolExecutor executor)throws Exception;
}
